import { lazy } from 'ice';

const RoleManage = lazy(() => import('@/pages/BaseManage/RoleManage'));
const ResourceManage = lazy(() => import('@/pages/BaseManage/ResourceManage'));
const ApiManage = lazy(() => import('@/pages/BaseManage/ApiManage'));
const UserManage = lazy(() => import('@/pages/BaseManage/UserManage'));

export default [
  {
    path: '/baseManage/roleManage',
    component: RoleManage,
  },
  {
    path: '/baseManage/apiManage',
    component: ApiManage,
  },
  {
    path: '/baseManage/userManage',
    component: UserManage,
  },
  {
    path: '/baseManage/resourceManage/:parentId',
    exact: true,
    component: ResourceManage,
  },
  {
    path: '/baseManage/resourceManage',
    exact: true,
    component: ResourceManage,
  },
];
